package com.house.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.house.model.entity.Collect;
import com.house.model.vo.HouseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CollectMapper extends BaseMapper<Collect> {

    Collect selectCollectByUserIdAndHouseId(@Param("userId")String userId,@Param("houseId") String houseId);

    int selectCollectCountByUserId(String userId);

    List<HouseVo> selectCollectByUserId(String userId);
}
